import { defHttp } from '/@/utils/http/axios'
import { ErrorMessageMode } from '/#/axios'

enum Api {
  ContactList='/api/website/msg/contact/list',
  DelContact='/api/website/msg/contact/del',
  ContactMsg='/api/website/msg/contact/get-content',
  RequestList='/api/website/msg/request/list',
  DelRequest='/api/website/msg/request/del',
  RequestMsg='/api/website/msg/request/get-content',
  TrialList='/api/website/msg/trial/list',
  Authorize='/api/website/admin/trial/authorize',
  Register='/api/website/admin/trial/account/register',
  DelTrial='/api/website/msg/trial/del',
  PartnerList= '/api/website/msg/partner/list',
  DelPartner='/api/website/msg/partner/del',
  PartnerMsg='/api/website/msg/partner/get-content',
 
}


//获取合伙人列表
export function partnerList(params:any) {
  return defHttp.get(
    { url: Api.PartnerList,
      params,
     },
  )
}
//删除合伙人
export function delPartner(params:any) {
  return defHttp.post(
    { url: Api.DelPartner,
      params,
     },
  )
}
//查看宝贵意见
export function partnerMsg(params:any) {
  return defHttp.get(
    { url: Api.PartnerMsg,
      params,
     },
  )
}
//获取联系我们列表
export function contactList(params:any) {
  return defHttp.get(
    { url: Api.ContactList,
      params,
     },
  )
}
//删除联系我们
export function delContact(params:any) {
  return defHttp.post(
    { url: Api.DelContact,
      params,
     },
  )
}
//查看宝贵意见
export function contactMsg(params:any) {
  return defHttp.get(
    { url: Api.ContactMsg,
      params,
     },
  )
}
//获取需求列表

export function requestList(params:any) {
  return defHttp.get(
    { url: Api.RequestList,
      params,
     },
  )
}
//删除需求
export function delRequest(params:any) {
  return defHttp.post(
    { url: Api.DelRequest,
      params,
     },
  )
}
//查看宝贵意见
export function requestMsg(params:any) {
  return defHttp.get(
    { url: Api.RequestMsg,
      params,
     },
  )
}
//获取试用列表
export function trialList(params:any) {
  return defHttp.get(
    { url: Api.TrialList,
      params,
     },
  )
}
//删除免费试用
export function delTrial(params:any) {
  return defHttp.post(
    { url: Api.DelTrial,
      params,
     },
  )

}
//授权免费试用
export function authorize(params:any) {
  return defHttp.post(
    { url: Api.Authorize,
      params,
     },
  )
}
//注册免费试用
export function register(params:any) {
  return defHttp.post(
    { url: Api.Register,
      params,
     },
  )
}